
# #无参
# def spmGifts():
#     for i in range(1,5):
#         print(f"这是你第{i}次领礼品")
#         age = int(input("请输入你的年龄"))
#         if age >= 40:
#             print("卡")
#             if age <= 50:
#                 print("一盒")
#             elif age <= 70:
#                 print("二盒")
#             else:
#                 print("三盒")
#         elif age >= 20:
#             print("花")
#         elif age >= 10:
#             print("10")
#         elif age >= 0:
#             print("笔")
#         else:
#             print("no")
#             print("领取结束")
# #函数  含有参数，该参数为位置参数——必填
# def spmGifts_1(n):
#     for i in range(1,n+1):
#         print(f"这是你第{i}次领礼品")
#         age = int(input("请输入你的年龄"))
#         if age >= 40:
#             print("卡")
#             if age <= 50:
#                 print("一盒")
#             elif age <= 70:
#                 print("二盒")
#             else:
#                 print("三盒")
#         elif age >= 20:
#             print("花")
#         elif age >= 10:
#             print("10")
#         elif age >= 0:
#             print("笔")
#         else:
#             print("no")
#             print("领取结束")
# #含有参数，选填，不填则为默认值
# def spmGifts_2(n=2):
#     for i in range(1, n + 1):
#         print(f"这是你第{i}次领礼品")
#         age = int(input("请输入你的年龄"))
#         if age >= 40:
#             print("卡")
#             if age <= 50:
#                 print("一盒")
#             elif age <= 70:
#                 print("二盒")
#             else:
#                 print("三盒")
#         elif age >= 20:
#             print("花")
#         elif age >= 10:
#             print("10")
#         elif age >= 0:
#             print("笔")
#         else:
#             print("no")
#             print("领取结束")
#函数 含有参数  既有必填，又有选填，位置参数放在选填参数前
# def spmGifts_3(m,n=2):
#     for i in range(1, n + 1):
#gifts()
# print(__name__)


#说话 定义一个不定长参数（元组） *t
# def saySomething(*t):
#     print(t)
# #说话 定义一个不定长参数（字典） **d
# def saySomething2(**d):
#     print(d)
# #书写顺序：位置参数   可选参数   不定长元组  不定长字典
# if __name__=='__main__':
#     saySomething()
#     saySomething("a")
#     saySomething("a","b")
#     saySomething2(a=2,b=3)